2013-03-14 Leo Liu <sdl.web@gmail.com>
- * thingatpt.el (end-of-sexp): Fix bug#13952.
+ * thingatpt.el (end-of-sexp): Fix bug#13952. Use syntax-after.
2013-03-11 Glenn Morris <rgm@gnu.org>
(defun end-of-sexp ()
"Move point to the end of the current sexp.
\[This is an internal function.]"
- (let ((char-syntax (and (char-after) (char-syntax (char-after)))))
+ (let ((char-syntax (syntax-after (point))))
(if (or (eq char-syntax ?\))
(and (eq char-syntax ?\") (in-string-p)))
(forward-char 1)